//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder;

namespace EntLibContrib.Resource
{
	/// <summary>
	/// Factory for <see cref="IResourceProvider"/>s. This class is responsible for creating all the internal
	/// classes needed to implement a ResourceProvider.
	/// </summary>
	public class ResourceProviderFactory : LocatorNameTypeFactoryBase<IResourceProvider>
	{
		#region Construction
		/// <summary>
		/// <para>Initializes a new instance of the <see cref="ResourceProviderFactory"/> class 
		/// with the default configuration source.</para>
		/// </summary>
		protected ResourceProviderFactory ()	: base()
		{
		}

		/// <summary>
		/// <para>Initializes a new instance of the <see cref="ResourceProviderFactory"/> class 
		/// with the given configuration source.</para>
		/// </summary>
		/// <param name="configurationSource">The configuration source that contains information on how to build the <see cref="IResourceProvider"/> instances</param>
		public ResourceProviderFactory (IConfigurationSource configurationSource) : base(configurationSource)
		{
		}
		#endregion
	}
}